package org.microservice.auth.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.microservice.common.bean.UserVo;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/6
 * Time: 14:41
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Mapper
public interface SysUserDao extends BaseMapper<UserVo> {

    UserVo findUserByUsername(@Param("username") String username);

    void updateUserTokenById(@Param("token") String token, @Param("id") int id);

}